
using System;
using System.Text;
using Mbs.ComponentModel.Container.Context;

namespace Mbs.ComponentModel.Container.Injection
{
    class InjectStrategyManager : ListnerManager<IInjectStrategy>, IInjectStrategyManager
    {
        public InjectStrategyManager() { }

        public void Execute(IInspectContext ctx)
        {
            Foreach(item => item.Execute(ctx));
        }

        public string GetLoopDependencyPath(Type type)
        {
            var sb = new StringBuilder();

            Foreach(item => GeneratoeLoopDependencyPath(sb, item, type));
           
            return sb.ToString();
        }

        private void GeneratoeLoopDependencyPath(StringBuilder sb, IInjectStrategy item, Type targetType)
        {
            //item.Inspect.Members.Foreach(m=>
        }
    }
}
